How can I make a viewport frame interactive?

Pretty simple request, I just wanna be able to when dragging on a view cam be able to rotate the objects or zoom in to my liking guns In phantom forces but I’m not sure how to