Creating a widget is very easy.
- Create a custom module
- Create a Plugin Structure mymodule/src/Plugin/Widget
- Check the Noah's Widgets, copy and paste, change de ID, data and add your magic there.
- Save the file, clear the cache and you should see your widgets in the widget section when you open "add widget".