originally this is all late 19th century/early 20th century mystical Orientalism - specifically theosophy gets very into this whole mythos. Theosophy included some genuinely talented artists and scholars, and isn't particularly racist by the standards of the time.