def __init__(self, name='<STR_LIT>', size=[<NUM_LIT>,<NUM_LIT:200>], autosettings_path=None, margins=_defaults['<STR_LIT>']):
<EOL>Window.__init__(self)<EOL>self._window = _g.Qt.QtGui.QDockWidget(name, None)<EOL>self._window.setFeatures(self._window.DockWidgetFloatable |<EOL>self._window.DockWidgetMovable   |<EOL>self._window.DockWidgetClosable)<EOL>self._window.setObjectName(name)<EOL>self._widget = _g.Qt.QtGui.QWidget()<EOL>self._layout = _g.Qt.QtGui.QGridLayout()<EOL>self._widget.setLayout(self._layout)<EOL>self._window.setWidget(self._widget)<EOL>if margins==False: self._layout.setContentsMargins(<NUM_LIT:0>,<NUM_LIT:0>,<NUM_LIT:0>,<NUM_LIT:0>)<EOL>else:              self._layout.setContentsMargins(*margins)<EOL>self.set_size(size)<EOL>self._window.moveEvent   = self._event_move<EOL>self._window.resizeEvent = self._event_resize<EOL>self._window.closeEvent  = self._event_close<EOL>self._autosettings_path = autosettings_path<EOL>self._load_settings()<EOL>self.get_row_count    = self._layout.rowCount<EOL>self.get_column_count = self._layout.columnCount        <EOL>self.place_docker = self._disabled<EOL>
This creates a docked layout that can contain other object.

All names must be unique within one project!