def METHOD_NAME(self, window_pos=None, space_pos=None, event_type=None, **kwargs):
    if event_type == "leftdown":
        if self._opened:
            self.minimize(window_pos=None, space_pos=None)
            self._opened = False
        else:
            self.maximize(window_pos=None, space_pos=None)
            self._opened = True
    elif event_type == "rightdown":
        self.show_options()
    return RESPONSE_ABORT