Place a deer feeder in your backyard that is both visible from a window and far enough away from the house to prevent the deer from being easily scared away. Fill the feeder with grains or fruit and include a trough of fresh water.
Add a salt lick near your feeder as this also frequently attracts deer.
Leave a glob of peanut butter near the feeder as well since many deer enjoy the scent and taste of it.
Keep your yard as quiet as possible. A loud television, radio or a barking dog can all make enough noise to keep deer away.