private static Rectangle2D.Double scale( double scaleX, double scaleY, double px, double py, int width, int height ) {
		double newX = normalize( px );
		double newY = normalize( py );
		double newWidth  = normalize( px + (width  * scaleX) ) - newX;
		double newHeight = normalize( py + (height * scaleY) ) - newY;

		return new Rectangle2D.Double( newX, newY, newWidth, newHeight );
	}
Scales a rectangle in the same way as the JRE does in
sun.java2d.pipe.PixelToParallelogramConverter.fillRectangle(),
which is used by Graphics.fillRect().
flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java