Does any expert know how to implement the 'Work under' mechanism on own widgets ?

Greetings,

In the OOTB Widgets a 'Work Under' icon (helmet icon) is displayed and it's required to select a Change Action in order to modify the Engineering Item as soon as the Engineering Item is change controlled.
We would like to understand how the functionality is implemented since we have own widgets and need the 'Work under' mechanism to edit the Engineering Items.

Does anybody know how this mechanims works and how it's possible to implement it in own widgets.

Your feedback is highly appreciated.
Georges