A new widget view can be created by simply inheriting from WidgetView and overriding the getViewWidget method. A widget view should call addWidgetToDock when creating the root widget.
getViewWidget
addWidgetToDock