I knew a guy like that. He lived in a shack he built. The property owner let him stay because he ran all the real vagrants off. Living his life his way and not standing on a street corner with a cardboard sign.
I have no problem with that or this dumpster diver.
As kids, we lived near a Dunkin Donuts that would throw out the unsold donuts every night. They put them in a paper flour sack and put that in the dumpster behind the shop.
Being typical teen boys, after discovering this treasure, we maybe ate one or two as a trial, but wind up mostly using them as a source of ammunition to throw at friends and classmates. After a couple weeks of this, they, or the police, figured it out, and a lock was put on the dumpster.