For future reference, Shimano has on their website a compatibility chart so you can figure out exactly what works with what.
https://productinfo.shimano.com/#/co...453&acid=C-453
It clearly shows that 10 speed 105 (5700?) shifters won't work with the 10 speed GRX derailleur, sadly.