That should be the default behavior. Or better yet - that is the default behavior
The default behavior is to take the position of the desktop camera and the rotation on the y axis when entering XR. if that’s not the case please try reproducing it and show us when it doesn’t work.
Note that you are overriding this behavior when you set the camera’s position on your own.
If I misunderstood, please try me again