I think a roof garden would be cool!
Corn would do great as they have shallow root systems. Green beans, cabbage, cauliflower, and broccoli are also shallow. For tomatoes I would go at least 20-24" deep. Same for peppers. But for most other things I think 16-18" would do fine.
I don't know...