code: def cloneWindow(self):
          
          # Save current window settings.
          settings = QtCore.QSettings()
          settings.beginGroup(self.argosApplication.windowGroupName(self.windowNumber))
          try:
              self.saveProfile(settings)
  
              # Create new window with the freshly baked settings of the current window.
              name = self.inspectorRegItem.fullName
              newWindow = self.argosApplication.addNewMainWindow(settings=settings,
                                                                 inspectorFullName=name)
          finally:
              settings.endGroup()
  
          # Select the current item in the new window.
          currentItem, _currentIndex = self.repoWidget.repoTreeView.getCurrentItem()
          if currentItem:
              newWindow.trySelectRtiByPath(currentItem.nodePath)
  
          # Move the new window 24 pixels to the bottom right and raise it to the front.
          newGeomRect = newWindow.geometry()
          logger.debug("newGeomRect: x={}".format(newGeomRect.x()))
          newGeomRect.moveTo(newGeomRect.x() + 24, newGeomRect.y() + 24)
  
          newWindow.setGeometry(newGeomRect)
          logger.debug("newGeomRect: x={}".format(newGeomRect.x()))
  
          newWindow.raise_()
docs: Opens a new window with the same inspector as the current window.