Not an easy to find functionality is hidden in this UI macros. It is being loaded on every form and renders context menu: context_form_header
context_form_header
Develop whatever!