Zoom only part of the screen

How can I achieve such behavior after moving the camera infront of the gun and drawing the texture?
(Outside of scope is not zoomed , inside is)

You can use a Capture2D, with a low FOV, and set its texture to your weapon’s material