code: public Window addAsWindow(Component component) {
  
          // Have to use an array because Vaadin declarative tries to bind the field otherwise
          if (m_currentWindow[0] != null) {
              m_currentWindow[0].close();
              m_currentWindow[0] = null;
          }
  
          Window window = new Window();
          window.setContent(component);
          window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_GIT_SCRIPT_RESULTS_0));
          window.setWidth("1000px");
          window.setModal(true);
          window.setResizable(false);
          A_CmsUI.get().addWindow(window);
  
          m_currentWindow[0] = window;
          return window;
      }
docs: Opens a modal window with the given component as content.<p>
  
  @param component the window content
  
  @return the window which is opened