In our plugins we use a similar approach to what trickyflemming suggests: we have a container that handles resizing our view through an AffineTransform. We have OpenGL components as well in our plugs and I haven’t run into any scaling issues yet with this!