Hello Jian wang,
Check out this learning path
https://gettingstarted.mendixcloud.com/link/path/108/Build-a-Pluggable-Widget
For XML Widget Property Types
https://docs.mendix.com/apidocs-mxsdk/apidocs/property-types-pluggable-widgets