// Create a new DockPanel control var dockPanel = new DockPanel(); // Add a new dockable window to the panel var newWindow = new DockContent(); newWindow.Text = "New Window"; newWindow.Show(dockPanel); // Update the layout of the docking windows dockPanel.ResumeLayout();The above code creates a new DockPanel control and adds a new dockable window to it. The ResumeLayout method is then called on the DockPanel instance to ensure the layout is refreshed. The WeifenLuo.WinFormsUI.Docking package provides a library of classes for creating docking window interfaces in Windows Forms applications.