I use those collapsible laundry baskets, so that's what I was picturing. You probably use one of those puppy playpens. That would be too large to hang.
What I like about the coat rack is that I can use the height to keep him confined. As long as I can keep him about 2 feet off the ground with no way to climb down, he should stay on it.