How can I open a page in a tab or a window using Puppeteer?

Puppeteer

This feature allows opening a page in a tab or a window. newPage() can now be called with window options to choose where the page appears, enabling tests that require a separate window context.