The exit from the Harem opens into the Third Court, otherwise reached through the Gate of the White Eunuchs.
The Gate of the White Eunuchs was one of the openings to the Third Court.