[[ Bug 12708 ]] Update the weak window creation (popups fall into this c...

...ategory as well)
This comes to fix an issue with the popup windows,  introduced in bugfix-12708