def METHOD_NAME(self, event):
    position = event.pos()
    # Create menu outside pyqtgraph.PlotWidget position
    if isinstance(self.childAt(position), (PlotWidget, DockLabel, QtWidgets.QLabel, PlotFrame)):
        menu = QtWidgets.QMenu(self)
        menu.addAction(self.save_dock_action())
        menu.exec(self.mapToGlobal(position))