I put shelves in all aft cabin cabinets, Unfortunately the hanging rod is pretty hard material can't be hand cut, so I left it.
As a gauge I used clear foil like my "canvas man" does for bimini/spray hood/sofa etc. Optionally cardboard. I had no need for cloths hanging. All I need in the Med. is t-shirts and shorts, folded on shelves.