Removes a pane from the docking manager.
A pointer to the pane to remove.
If TRUE, the removed pane is destroyed.
If TRUE, adjust the docking layout immediately.
If TRUE, the docking layout is related to the list of autohide bars. If FALSE, the docking layout is related to the list of regular panes.
A pointer to a pane that replaces the removed pane.