i think the processing analogy also only takes the being-worked-on documents into account, rather than reusable libraries.
Nope, reusable libraries are stored in ~/Documents/Processing/libraries. Same for Arduino. This is mainly because ~/Library is not accessible by regular users whereas one method of adding libraries to Processing is to download a zip and put it’s contents in Processing/libraries.