Handle close&resize in Window, not Widget