preview method
Draws path as file — unsaved edits — until endPreview: what uses
it, its variants and the layered materials it is a layer of follow.
Implementation
void preview(String path, MaterialFile file) {
if (_previews[path] == file) return;
_previews[path] = file;
_changed(path);
}