var w = new Window ();
w.Owner = Window.GetWindow (this);
w.Show ();
What is this? It isn't Qt code. It isn't even C++, it's C#. So why are you posting this in a Qt forum?