How to make an Actor visible only in a certain area of ​​the Viewport?

Hi I want to make virtual AR in my PC targeted project. For example, when I turn the AR mode on, The AR UI will show up(as if running a camcorder).
Since using AR functionality, some Actors should only be visible in the AR UI.
How can I make this?

I found the way in here :

Material UI can’t use Custom Depth, So I make the occlude wall in front player’s camera and use it like widget.