You have to get an access to UI. For an example SpreadsheetApp.getUi().showModelessDialog ...
After this call window.open
then google.script.host.close();
if you need.
The example https://docs.google.com/spreadsheets/d/1Q9VFiCrbwLwqm5i2y8OJU4RsSuj8qUhocqd1YUzR1p0/copy
⚠️ The end user must also allow the popup for the given URL.
Thanks a ton. Its working.