If the NSPopover has its contentViewController set to some NSViewController that does not use SwiftUI directly on its view
NSPopover
contentViewController
NSViewController
view