Python create a window with a text input field?

Is this even possible with the built in Python plugin? I know it was possible and easy to do with the third party plugin but I’m not finding anything in the very limited API documentation to suggest this is possible.