I am quite young and a Border Collie. I have many Collie traits, including not liking my people leaving where I have put them. I can't work with sheep so have to make do with hoomans. I am a very fearful, skittish kind of dog, if you came into my home, I would bark at you, if you came too close or tried to leave I would attack and bite you.
I needed help, I was very scared of people being near me. I did get the help I needed, but I needed my safe space, I had my crate brought into the room so I could be around but not be close to visitors, I could see them but didn't have to be fussed, I didn't like being fussed.
My owners started to take me out with a visitor before they came in, and always brought me a special bag with some goodies in it. After our little walk, we would come back home, the visitor would place a goodie in my crate, and then I would go in. I would have my door shut so that I could feel safe and enjoy what I had been given. This helps me lots.