the great 14th-century hispano-moorish sufi ibnarabi developed a metaphysics of the creative imagination by which the adept could achieve spiritual progress via direct contemplation of the archetypes , including the domains of djinn , spirits and angels .