Dogs that are left alone outside for hours can become a nuisance to neighbours because of barking and whining out of boredom.