The specific goal was to remove the General and Style Builder tabs from the Insert Link properties window. See image below:
I took a look at the Dialog directory and found how to remove components such as URL and type in the above example, but I was not able to find how the tabs were rendered in this dialog. Is it possible to remove or disable these tabs somehow?