Veterinary behavior bodies say aversive equipment including electronic collars should not be used. What that means when the real problem is your neighbor.
Curtains and window inserts do two different jobs for a dog that barks at the window: one adds mass, the other removes the trigger. Here is which you need.