AFAIK there is no such built-in functionality. If your drawing layer is spatially referenced I'd suggest to use in-memory shapefile as a substitute. Please check this sample to get the idea on how to create and populate it.
↧