This will make a window maintain an aspect ratio.
Future<void> setAspectRatio(double aspectRatio) async { _target?.aspectRatio = aspectRatio; }