If you can’t or don’t want to build a permanent structure, purchase an open-sided tent and put it up over the playpen.
Wait until the eggs have hatched and the birds have left the nest before you let your dog off the leash outside. In the U. S. , birds of prey are federally protected, so do not attempt to disturb or remove an active nest.