Magic is simply science we don't yet understand. In my dreams, its governed by its own rules and mathematical equations regardless of if it's elemental or arcane in nature, or nature magic, or really any of the other types I've dreamed of. I spent most of my dream life studying magic.
And after all, what is a magical portal between two points but a wormhole?