This can be useful for creating simple plugins for egui. The state can be stored in the egui data store, or by the user. An example plugin for painting debug text on screen is provided.