Fix: Window and Dialog with different behavior in opening a sub form.