The city’s rooftops, courtyards, and backyards are transforming into living ecosystems that reflect a more mindful, sustainable way to garden.