Well first off, the matter would probably be in a gaseous form to be sprayed out, and then it would organize into several cells, and then using molecules from the surrounding area, giving the cells nutrients to divide and create an entire dragon.
All in a matter of seconds.