You can craft a syringe that can take any liquid. Then, you can inject the fluid in the block of your choice. It can be a glass block, a glass pane or another transparent block. You can choose the possible block through a configuration file.
Craft :

An example :
