title: SwiftUI 2: the way to open view in new window
body: <p>Lets imagine that I have an App</p>
  <pre><code>var storeVM = BookStoreViewModel(bla1: bla1, bla2: bla2, bla3: bla3)
  
  @SceneBuilder var body: some Scene {
      WindowGroup {
          BookStoreView( model: storeVM )
      }
      
      #if os(macOS)
      Settings {
          SettingsView(model: config)
      }   
      #endif
  }
  </code></pre>
  <p>BookStore have a Grid with a lot of books saved in some DB.</p>
  <p>BookView can be initiated by a following way:</p>
  <pre><code>BookView(model: bookViewModel)
  </code></pre>
  <p>Target: to open BookView IN A NEW SEPARATED WINDOW(as example by click on the button). How can I do this?</p>
  <hr />
  <p>Bonus question:
  How can I open <code>SettingsView(model: config)</code> from the code?</p>
  <hr />
  <p>PS: <code>NavigationLink</code> is not solution for me because I not using the <code>NavigationView</code>.</p>