What was this vintage cabinet for?

That’s not a shade on top, it’s a place to view open files. Note the lip on the bottom ledge.

Its a custom bookkeeping cabinet. Special ordered to meet a specific business’s system needs. Unless you knew the specific business it would only be speculation in regards to its application. Even then you would need personalized training to use it.