The point of the analogy is that the contents of ones files should be considered analogous to the contents of ones mind.
Whatever reasons we had in the past for deciding that financial or health data, or conversations with attorneys, or bathrooms and bedrooms, are private, those reasons should apply to ones documents which includes ones files.
Or at least if not, we should figure out and be able to show exactly how and why not with some argument that actually holds water.
Only after that does it make any sense to either defend or object to this development.
In every state that I've lived in they must give advance notice (except for emergencies). They can't just show up and do a surprise check.