import SwiftUI

@main
struct TestApp: App {
   var body: some Scene {
      WindowGroup {
         ContentView()
      }
      #if os(macOS)
      Window("My Window", id: "mywindow") {
         AuxiliaryView()
      }
      .defaultWindowPlacement { content, context in
         let bounds = context.defaultDisplay.bounds
         let position = CGPoint(x: 100, y: 100)
         let size = CGSize(width: bounds.width / 2, height: bounds.height / 2)
         return WindowPlacement(position, size: size)
      }
      .restorationBehavior(.disabled)
      #endif
   }
}