Answer:
You may be talking about the tradition where neighbors bake treats, place them on a neighbor's doorstep, ring the bell and run away.
A note is left saying the neighbor has been "booed" and must return the favor to another neighbor. A picture such as a pumpkin or ghost is place in the home's window to signify that that house has been "booed." It is a popular tradition in American suburban neighborhoods.