How to get mouse.hit in a viewport frame

I wanna know how to get the mouse position inside of a viewport frame.

Check this post