It would spoil it putting it in a cupboard but how about when he gets older and starts dressing himself you can hang his clothes on it night before :-)
I can imagine all sorts of problems if you used those coat hangers in a wardrobe. I swear like mad when those awful normal wire coat hangers get tangled up - just imagine those new fangled ones getting all in a mess!!!!