Panels in clothes closets were allowed at one time and my house was built like that. The AHJ required me to either move the panel or install a partition and remove the clothes rod. I moved it to the outside of the house because I needed a larger panel anyways.