I agree that having a companion for your dog is helpful.
My 2 b's sleep on the bed when we are are work…unless they are sunning themselves outside in the summer keeping an eye on the yard.
We have a doggie door and its helpful...but I wouldn't let a single dog have access to the outside, as they might see some dog they want to play with
and go over/under the fence.
My 2 have never even tried to climb out. But I believe its cause they are together.