You need to implement focus awareness
https://developers.meta.com/horizon/documentation/unity/unity-overlays/