Legacy headless: support the ScaleDialog

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>