Peierls brackets: From Field theory to dissipative systems