I'm not sure how it is on Mac. But it's pretty trivial to get any exe in windows to run as a child of some tools.
E.g. I wrote a personal packet manipulator for visual studio. And added a registry key. So whenever you open any Devenv.exe it launches my program with devenv as an argument. To a normal person it's 100% not noticeable. But I'm the parent and could in this example perhaps Control the touchbar.
Tl Dr you can probably wrap a utility around other programs to have passive use. And/or inject tweak how controlbar looks at active window. Just force it to not update after its locked on.