widgets: window: hide window on modal window exits