I don't know about Afghanistan but the "trans" population would NOT be welcome in the Kingdom of Saudi Arabia.
One needs a entry visa to get INTO the country and one needs an exit visa to leave.
They are picky about tourists. They can forbid ANYONE from entering or exiting with the proper visa.
During their holy month of Ramadan Muslims have to have MUSLIM printed on their passport to get into Mecca.
They don't fool around and from what I've heard Saudi prisons are NOT nice.
should have marked it /s