Move camera when mouse is on the edge?

How would I do this/any examples?

E.G. Mouse is on the right most 3 pixels so it moves but any more inner it doesn’t move at all.

Check Input.mousePosition against Screen.width / Screen.height.