So instead of just dissecting the hypershade maybe it's better to just build something from scratch.
The problem with that though is that I don't know what the UI parts are named (MEL commands). I've been trying to locate the names of these elements but it's like trying to find a needle in a haystack, so maybe it's better to just ask?
What I want to create manually is this particular part of the hypershade shown below:
What I wanna know is the name of that workspace -container, the thumbnails and the tabs.
The sorting column stuff on the left is just a columnLayout so nothing fancy there.
EDIT: Also, if the thumbnails/swatches under "textures", "utilities" and "shading groups" are called something else then I would like to know the name of those as well.