Sounds like you didn’t create the widget before trying to add to viewport.
Post a screenshot of your Blueprint.