Click the image to see a larger version.
While it's obviously wrong for kids to pick on a homeless person by throwing snowballs at him, Pete was also obviously wrong to angrily pelt the kids with snowballs in retaliation. The upside to him breaking a window and alerting a local policeman, however, is that he doesn't have to worry about finding a place to sleep tonight (and he will be safe from those kids, I guess). I'm not sure why the dog and the kid have to be in the cell with him, though. They gave some angry looks to the snowball kids, but it doesn't show them throwing anything. Maybe throwing angry looks makes you an accomplice to throwing snowballs.