I have a problem with easily ignitable materia. First owner of home might be okay with what is placed inside a closet but who knows what the next homeowner will do. I have been ask to put in sub panels indide of clothes closets over the years but refused. Readily accessibility often becomes a problem with overstuffed closets. Best was they had 2 side by side 4 drawer filing cabinets inside a clothes closet that weight a lot. Was on a job where sub panel was inside of a large walk in closet that even had a large window. Only problem was somebody installed storage cabinet where you could only open circuit breaker panel door a few inches.