Leaning on other dogs (and in some instances humans), can be a sign of dominance. If your dog leans against a dog he doesnt know, he may be sizing up the other dog. Hmmm, your dog is thinking, this guy is a lightweight; I can take him. Or he could be thinking, Whoa!