Viewport on surface gui?!?

Hello.
I have heard that you have to use screengui To display a view port frame On a surfacegui.
How do I have to place The things And how do I connect them?
Code examples are appreciated