Minify UI question

Does anyone know how the minifyUI tool works from a code perspective? I am transitioning my firm to a custom c# based addin and users have told me they have to have the minifyUI tool in the new addin. So after digging in the API, I do not see anything that will give me options.

My question is does anyone know how the tool works? What is it calling that allows it to hide tabs?

Check out the code by alt+click on the minifyui button.
Or the GitHub repo the code is here

3 pi├Ęces, the main script, the backend definitions and the config to pick the tabs you want to hide