def mousePressEvent(self, event):
        if event.button() != Qt.RightButton:
            return
        self._application.choose_new_data_viewer()
Right mouse press in the MDI area opens a new data viewer
dataset/ETHPy150Open glue-viz/glue/glue/app/qt/mdi_area.py/GlueMdiArea.mousePressEvent