def _stop_drag(self, evt=None):  # pylint: disable=unused-argument
        """ Gets called when the user stops dragging the window """
        Globals.base.taskMgr.remove("UIWindowDrag")
        self._dragging = False
 Gets called when the user stops dragging the window 
metadrive/render_pipeline/rpcore/gui/draggable_window.py