Viewportframe to Decal/Image to upload as decal

If I wanted to take a viewport frame and convert it to a decal, directly or an Image and upload as Decal through a proxy. How would I go about this?