open a session to define in a dialog in an extra window

def open(self):
        """open a session to define in a dialog in an extra window"""
        filename = self.dialogs.getOpenFileName(filter="*.%s" % self.FTYPE)
        if filename:
            self.new(filename)