Although this looks a little hackish for me, but at the moment I don't think of any other possibilities to solve you problem. Anyway, this is working:
import pyglet
window = pyglet.window.Window( resizable=True )
@window.event
def on_resize( width, height ):
ratio = 9/16
window.set_size( width, width*ratio )
@window.event
def on_draw():
window.clear()
pyglet.app.run()