I was trying a much too complicated approach. Something like this in my sway config worked fine.
for_window [class="frontend"] move to output "DP-1"