How to open existing WPF windows as DocumentWindows in the standard MDI interface programmatically? In a QuickStart Samples "Custom Docking Windows" it is made in XAML, but not shown how to do it programmatically. Please, give an example of the method "var doc = new DocumentWindow (...)" to open an existing WPF window (file XAML in application). Thanks.