Another way to say "A closet can be used for hiding in" is "To hide, go inside a closet."