"DocumentPickerApp" is different from macOS to iOS & iPadOS

This sample program :

@main struct DocumentPickerApp: App { var body: some Scene { DocumentGroup(newDocument: DocumentPickerDocument()) { file in ContentView(document: file.$document) } } }

This sample program is running correctly on iOS, iPadOS. But this program is not running correctly on macOS.

Xcode version 15.3, compile correctly all OSs, but on macOS cannot change Picker's file. I cannot understand the reason.

Please tell me, the way of this problem!!