In that example, MyWidgetPtr is the name of the variable with the type TSharedref<SWidget>.
Functions like SNew use this reference to an SWidget.
There are a number of existing SWidget classes that you can use in SNew such as SHorizontalBox and SUniformGridPanel.
Examples for how to construct an SWidget can be found on this page in the docs: Slate Widget Examples | Unreal Engine Documentation