Rain gardens are often located near a building's roof drainpipe (with or without rainwater tanks).
Rain gardens are beneficial for many reasons: improve water quality by filtering runoff, provide localized flood control, are aesthetically pleasing, and provide interesting planting opportunities.