Coat hook rack above a wall with fuse boxes
In the US code prohibits the panel from being in the vicinity of easily ignitible material with clothes closets specifically listed NEC 240.24.D.  So based on that I would say it's not a good idea.