Hmm, not something I'd like to try and do.
Reckon probably could be difficult to control algae if let to grow too wild and also is unsightly in a tank IMO.
Can I ask why you are considering something like this?
For example food for algae eaters like shrimps, plecos and otos or something like that?
If thats what you want, might be better off using a small cheap tank, plastic bottle or something like that and simply leave somewhere in direct sunlight on windowsill, or can go higher tech than that. Not sure how, am sure have read somewhere on this forum about growing algae.