code: def __init__(
      self,
      name,
      area=None,
      size=(10, 10),
      widget=None,
      hideTitle=False,
      autoOrientation=True,
      label=None,
      **kargs,
  ):
      QtWidgets.QWidget.__init__(self)
      self.dockdrop = DockDrop(self)
      self._container = None
      self._name = name
      self.area = area
      self.label = label
      if self.label is None:
          self.label = DockLabel(name, **kargs)
      self.label.dock = self
      if self.label.isClosable():
          self.label.sigCloseClicked.connect(self.close)
      self.labelHidden = False
      self.moveLabel = True  ## If false, the dock is no longer allowed to move the label.
      self.autoOrient = autoOrientation
      self.orientation = "horizontal"
      # self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignHCenter)
      self.topLayout = QtWidgets.QGridLayout()
      self.topLayout.setContentsMargins(0, 0, 0, 0)
      self.topLayout.setSpacing(0)
      self.setLayout(self.topLayout)
      self.topLayout.addWidget(self.label, 0, 1)
      self.widgetArea = QtWidgets.QWidget()
      self.topLayout.addWidget(self.widgetArea, 1, 1)
      self.layout = QtWidgets.QGridLayout()
      self.layout.setContentsMargins(0, 0, 0, 0)
      self.layout.setSpacing(0)
      self.widgetArea.setLayout(self.layout)
      self.widgetArea.setSizePolicy(
          QtWidgets.QSizePolicy.Policy.Expanding,
          QtWidgets.QSizePolicy.Policy.Expanding,
      )
      self.widgets = []
      self.currentRow = 0
      # self.titlePos = 'top'
      self.dockdrop.raiseOverlay()
      self.hStyle = """
          Dock > QWidget {
              border: 1px solid #000;
              border-radius: 5px;
              border-top-left-radius: 0px;
              border-top-right-radius: 0px;
              border-top-width: 0px;
          }"""
      self.vStyle = """
          Dock > QWidget {
              border: 1px solid #000;
              border-radius: 5px;
              border-top-left-radius: 0px;
              border-bottom-left-radius: 0px;
              border-left-width: 0px;
          }"""
      self.nStyle = """
          Dock > QWidget {
              border: 1px solid #000;
              border-radius: 5px;
          }"""
      self.dragStyle = """
          Dock > QWidget {
              border: 4px solid #00F;
              border-radius: 5px;
          }"""
      self.setAutoFillBackground(False)
      self.widgetArea.setStyleSheet(self.hStyle)
  
      self.setStretch(*size)
  
      if widget is not None:
          self.addWidget(widget)
  
      if hideTitle:
          self.hideTitleBar()
  
imports: import warnings
  from ..Qt import QtCore, QtGui, QtWidgets
  from ..widgets.VerticalLabel import VerticalLabel
  from .DockDrop import DockDrop
label_desc: Use image node_id 1 to create a new Dock object from inherited base classes: QtWidgets with example: obj = Dock(name, area, size, widget, hideTitle, autoOrientation, label)