It's very difficult to find a truly ethical way to touch on this theme as it involves violating a person's privacy and dignity. However, some stories might use it in a metaphorical sense, like a person feeling exposed and vulnerable in a public situation without actually being physically naked. For example, a story about a person who has their secrets publicly revealed and feels as if they are stripped bare in front of everyone.
One could consider stories where a character has a dream or a nightmare about being forced naked in public. This can be a way to explore the character's insecurities and fears without actually promoting or normalizing the act in a real - world context. In these stories, the nudity is more of a psychological state rather than a physical act. For instance, a character who is constantly worried about being judged might have such a dream which then leads to self - discovery and growth in the story.
Perhaps in some historical or cultural stories, there might be a situation where a person is made to stand in a public square as a form of public shaming, but not in a completely naked state. This can be used to show the power dynamics and the harshness of certain historical periods. But again, these are not to be taken as promoting the idea of forced nudity, but rather as a way to depict the social and cultural context of the time.