Another way to say "a closet  is for hanging clothes" is "if you wanted to hang clothes, you would use a closet"