docs: def newPanelTab(self):
          """
          Creates a new panel with a copy of the current widget.
          """
          view = self._currentPanel.currentView()
          
          # duplicate the current view
          if view:
              new_view = view.duplicate(self._currentPanel)
              self._currentPanel.addTab(new_view, new_view.windowTitle())