def METHOD_NAME(self):
    # Load the ui file (find it in our own directory)
    localDir = os.path.split(__file__)[0]
    self._drawer = uic.loadUi(localDir + "/drawer.ui")
    # Init threshold widget
    self.thresholdWidget = ThresholdingWidget(self)
    self.thresholdWidget.valueChanged.connect(self.apply_gui_settings_to_operator)
    # Add widget to a layout
    layout = QVBoxLayout()
    layout.setSpacing(0)
    layout.addWidget(self.thresholdWidget)
    layout.addSpacerItem(QSpacerItem(0, 0, vPolicy=QSizePolicy.Expanding))
    # Apply layout to the drawer
    self._drawer.setLayout(layout)
    # Initialize the gui with the operator's current values
    self.apply_operator_settings_to_gui()