Interesting thought. Maybe you would hack something together, but I don’t believe there’s an easy way to do that now. I just tested a quick example and it didn’t work. I don’t believe support for this is on the roadmap.
If you have interest in such functionality feel free to open an issue. 🙂