Update main window screen size in vision os

I have to decrease main window screen size when user open Immersive space in my project. Using frame i try it but it not updated main window size it just update view frame.

Update main window screen size in vision os
 
 
Q