How to make a transparent lens mask?

I know about the methods that allow you to simply hide everything through stencil depth, but I need the object to be hidden only if it is behind the mask.


Is it possible to implement a method like this in Unreal?