def METHOD_NAME(
    self,
    name,
    widget,
    area=Qt.RightDockWidgetArea,
    allowed_areas=Qt.AllDockWidgetAreas,
):
    dock_widget = QDockWidget(name)
    dock_widget.setObjectName(f"{name}Dock")
    dock_widget.setWidget(widget)
    dock_widget.setAllowedAreas(allowed_areas)
    self.addDockWidget(area, dock_widget)
    self.__view_menu.addAction(dock_widget.toggleViewAction())
    return dock_widget