Added possibility to prevent preview window from being open via contentPreview event.
Merge branch 't/9907b' into major