Quit immersive app without killing it

Hello,
I would like to know if there is a way to exit a fully immersive app without calling Application.Quit(), as this does force kill the app and Apple recommends against it.
Swift provides this method, do we have a way to call it within Polyspatial? dismissImmersiveSpace | Apple Developer Documentation
Thanks,