This example shows how scripts can create widgets directly. It creates and displays the window shown in customwidget.png.