code: def detachPanel(self):
          
          from projexui.widgets.xviewwidget import XViewDialog
          
          dlg = XViewDialog(self._viewWidget, self._viewWidget.viewTypes())
          size = self._currentPanel.size()
          dlg.viewWidget().currentPanel().snagViewFromPanel(self._currentPanel)
          dlg.resize(size)
          dlg.show()
docs: Detaches the current panel as a floating window.