Not Just Widgets
Custom elements need not be limited to buttons or menus. Custom elements can be complicated (a spreadsheet sytem, a report generator), and can even be invisible.

This page uses an invisible layout element to fit the orange sections to whatever screen you are looking at.

This page uses an invisible panel slider element to slide the sidebar in and out when you hit a button.