I have onions that overwinter in Ontario Canada so they are tough - called Egyptian or Winter onions. i have continuous green onions growing in small pots in the window. I cut off the tops and they keep regrowing all winter.
Also I have various herbs just growing in small planters on the window sill too.