Use registerWidgetType from MKWS code.