The classic Mac OS (Toolbox) menu routine took over exclusive use of the machine when it was tracking the mouse in the menu - all multitasking stopped running.
So an extension could draw whatever fancy effect it wanted when the menu was down without worrying about a background application drawing over it (drawing over the transparency) as long you made sure to restore what was beneath when the menu was let go.