What are you trying to do?
I'm not sure creating ViewportTextures from scratch even works. Usually we get them from Viewports, not the opposite.
Also, what is Draw
in your code? It's not a member or local variable, and you didn't use $
either. Is it an auto-load?