docs: def remove(self, name_or_klass):
          """
          Removes the specified panel.
  
          :param name_or_klass: Name or class of the panel to remove.
          :return: The removed panel
          """
          _logger().log(5, 'removing panel %r', name_or_klass)
          panel = self.get(name_or_klass)
          panel.on_uninstall()
          panel.hide()
          panel.setParent(None)
          return self._panels[panel.position].pop(panel.name, None)