code: public Window buildWindow() {
          final Window window = new Window(caption);
          window.setContent(content);
          window.setSizeUndefined();
          window.setModal(true);
          window.setResizable(false);
  
          decorateWindow(window);
  
          if (SPUIDefinitions.CREATE_UPDATE_WINDOW.equals(type)) {
              window.setClosable(false);
          }
  
          return window;
      }
docs: Build window based on type.
  
  @return Window