To turn a bread pan into a garden container, simply puncture the bottom of the pan with a nail using a hammer so excess water can drain. In the photo above, I put the lid of an plastic kiwi container under the pan to catch water runoff, using a piece of foil works too though.
I found this container abandoned in the basement of my building.
I have sucessfully grown basil, green onions, chives, romaine lettuce, spinach and wheat grass using this method. Windowsill gardening works for me.