Josephine Tey, PD James, Jane Austen, Dorothy Dunnett, Ellis Peters and Dorothy L Sayers, to name but a few, also all wrote books in which persons of one sex wore clothes of the other sex, often for more than two sentences. It’s rather frequently done as a plot device.