Attach grid to browser window

How to attach grid to a new browser window opened with window.open(…)?
Thank you.

Hello,

in this case it’s better to initialize the grid in html you need to open in window.