You have no proper panel declaration at all, but even if you had I don't think you can later add a window to an already-declared panel. Elements like windows must be already contained in the declaration.