When creating the DotNetBar for WPF docking windows from code make sure that you create proper parent/child hierarchy controls. The parent child relationship expected by the control is as follows:
DockSite
SplitPanel
DockWindowGroup
DockWindow
For example to create the document dock window you would use following code:
SplitPanel splitPanel = new SplitPanel();
DockWindowGroup dg = new DockWindowGroup();
DockWindow dw = new DockWindow();
dw.Header = "Document Window";
// Assign Dock Document content
dw