Dragable zoom mask?

Ive seen this alot of times.
Can anyone point me in the direction of a good tutorial?
(i don’t care if it involves a game or whatever i just need one)
thanks