The result above is done by using Preview under macOS.
In Dorico, I am not able to find a proper way to get it. Please watch the following video:
I have found a way: using Note Spacing is a way to do it, but it would be better if we can control “Grace note before barline” per staff independently…
I ran into the same problem. Tons of such instances in De Falla’s El Amor brujo. The independency of grace notes before and after barlines would be very much welcome.