first the booting files are loaded in the RAM and these files are in the boot sector where operating system is installed . after loading these file then these files load the operating system in the RAM , some portion of RAM is Allocated by the OS.
after that window is ready to perform tasks.