An interesting facet of guis that seems underexplored is displaying updated stats in a context menu while scrolling an underlying document. For instance, displaying the current function name / nesting depth under the context menu's position in a code editor.