First recorded "reality entering into dream sequence" in art?

Shaking the Red Queen into a kitten was in the sequel, Through the Looking-Glass, and What Alice Found There. In Wonderland, the deck of cards swarms her, and she wakes up with leaves falling onto her face.

I know it’s totally moot in this thread, but in the books the whole Oz thing isn’t a dream, it’s all real.