I'm interested, what test do they perform to check if a person in question was hungry?/s Still, it's a bad precedence imho, so according to such logic, a homeless person could also invade my home and sleep in my bed, because he can't afford his own.
Not quite, a homeless person could invade an empty home and sleep in that bed. This is done all the time, and is somewhat covered by squatter's rights. It's currently assumed that greater than 15% of the world's population are squatters. [1]
Squatting is the action of occupying an abandoned or unoccupied area of land–or a building, usually residential–that the squatter does not own, rent or otherwise have lawful permission to use.
Author Robert Neuwirth suggested in 2004 that there were one billion squatters globally. He forecasts there will be two billion by 2030 and three billion by 2050.