Aviation GPS antennas have (with very few exceptions) active amplifiers built into them, which means the unit connected to the antenna needs to supply power to it.
A splitter would have to isolate one power supply while allowing the other one to still power the antenna.
There are such things out there, but they cost as much as an antenna. This is one example:
Passive GPS antenna splitter with excellent gain flatness for all GNSS frequencies. 2 outpouts, 1 input. BNC, TNC, & N Connectors Available.
allavionics.com
Do you really want to mess with the receive path of what might be your primary IFR nav source? Not even sure if you'd be in compliance with Garmin's installation requirements anymore.
I'd probably do it if my fuselage real estate was limited and I wanted to share one antenna for a transponder and a secondary GPS. But I'd still reach out to the equipment manufacturers first to see what they say.