Resizing plugin not working properly.

I’ve figured it out:

I was calling resizeView() from my (separate) draw thread instead of the window (plugin view) thread. If I call it from the correct thread everything works great!