Popup windows support

Next try ;-) Now rebased!