Swift MacOS app button open window

Hi everyone !

It's about a week I'm trying to find a suitable command (not Navigation) in order to push a button and then have another window open for MacOS (not iOS).

I have ContentView with "Some TEXT" and DetailView with "Another text"

ContentView

import SwiftUI

struct ContentView: View {

    var body: some View {

        

        VStack {

            Text("Testing this") //First line text

                .navigationTitle("The program")

                .position(x: 200, y:20)

            Button("Push me") {

            }

            }

        .frame(width: 400.0, height: 200.0
            }
}

in Content view I also made a button

Button ("Push me") {
// and here I need to write something in order to open DetailView
}

DetailView

`import SwiftUI



struct DetailView: View {

    var body: some View {



        VStack {

            

            Text("Test OK") //First line text

                .navigationTitle("The program")

         

                .position(x: 200, y:20)

            

        }

        

        

        .frame(width: 400.0, height: 200.0)

}

}`

I am using swiftUI , and for now I need to solve this way. I know that through storyboard it could work much easier ... but I'm not looking for easy ways.