This is do-able, and yes the water would need to be touching the glass.
The tank could be built like an "L", with the horizontal part of the "L" being the tank, and the vertical part, acting as a snorkel/access area/gas exchange.
The top part could be in another room, and would have to be...