Creating a custom widget can come in handy when adding completely new functionality that the software does not offer by default.
To create a new custom widget, navigate to Toolbox >> Widget Manager and click on New Widget + button:
Then name the widget and add the custom code in the respective tab depending on the code language and click Save Changes:
After saving the new widget, the module will reload and redirect back to the main Widget Manager page where this newly created widget will appear on top of the default widgets: