For preventing freezing ui, you can follow the following workarounds:
By add features like width & height as:
window.open(url,target,'width=200,height=200');
And also, pay attention how to call the window.open, it must be triggered by an click event, for example, otherwise, it might be blocked.