We recently had a dog show up at our house out of the blue. She would sit about 30 feet away and bark, but wouldn't come close. She was looking a bit worse for the wear, but slowly warmed up to us. It took her a month to feel comfortable being touched. Here she is looking cautious.
And after a haircut and cuddles.
She's safe now. Her name is Maggie.