How would I make a "Barrel" Distortion effect the way VR headsets do?

If you want to see what I want to use viewport frames for. Click here.