Create W2 window Create W3 (owned) window

Click on these two buttons to create two windows. Close this one. W2 shall stay on the screen, W3 shall be closed as it is owned by this one.