OOUI supports sections in dropdowns, like this:
Native HTML <select> elements support a similar feature with <optgroup>. Section headers are not selectable.
We should consider whether this is something we want to support in Codex menus, perhaps as a special type of MenuItem?