According to your original post:
You’ve seemed interested in setting minimum size only, not programmatically resizing the window directly!
If it is just the latter now, the class PSurface already got a setSize() method:
getSurface().setSize(width>>1, height>>1);