I had a mixed breed goat years ago who for a brief time shared the back yard with out dog.. They loved each other and slept in the dog house together while we built a pen off the lean to attached to our garage.
The back yard was fenched with a 4 ft chain link fence... which Rosie promplty...