Homeless man attempted to break into home to 'use the toilet