Thanks Andreas Rånman!
This works outside of Editor Utility Widgets, too.