You can right click on a tab in the XamDockManager and toggle between a tabbed document and a floating window. How can I do this in C# so I can execute this behavior from a button click.
These actions are associated with content pane commands so you can use them, for example :
ContentPane cp = new ContentPane();
cp.ExecuteCommand(ContentPaneCommands.ChangeToDocument);