What is an open and closed sytem refer to in chemistry?

thanks!

In the physical sciences, an open system (system theory) is a system that matter or energy can flow into and/or out of, in contrast to a closed system, which no energy or matter may enter or leave.