This conscious and intentional method of relating to all phenomena as illusion is thus cast in a totally positive light on the spiritual path, a complete turn-around from the original negative valuation of it as deceit. Now illusion is seen as illumination and opportunity. The nature of our relationship with it is the salient point, rather than its own nature, which certainly does not exist anyway, in any way.
Aryadeva says:
Since everything is an illusory display,
it is possible to attain enlightenment.
The transformation of the maya concept from something to escape to something to engage may be loosely correlated with the shift of emphasis on understanding emptiness that emerged in the mahayana teachings. A further development may be seen in the vajrayana teachings with the esoteric instruction known as Illusory Body (sgyu lus). This occurs as one of the Six Dharmas of Niguma and in other configurations of completion stage practices in many lineages. (p.40)
--from Niguma, Lady of Illusion (Tsadra Foundation Series)