The form works because it is inside the window content
The form also work even if it's not inside the window content but the parent's window is the form itself