Start creating the window code

For that we need to revamp the lib a bit to make the
window fit correctly.