How to freely place an object in space (Immersive Space)

I would like to place an object in space, let’s say 1m in front of the user’s head. If the user turns the head or moves around, the object should stay in its place, instead of moving with the user.

I know this is not possible in Shared Space, as the system itself decides where the content is placed, using queries. But how does it work in Immersive Space, e.g. using ARKit?

On iOS and AR Foundation, I could place a “free floating world anchor” to achieve this. How is this possible on visionOS?