Creating a widget is very easy.
- Create a custom module
- Create a Plugin Structure mymodule/src/Plugin/Control
- Check the Noah's Controls, copy and paste, change de ID, data and add your magic there.
- Save the file, clear the cache and to use in your widget just add de form control type id in your field.