I always paste this book here when hobby OSes appear. I wrote my own GUI OS in the 90s and I couldn't have done it without this. Copies available on your usual shadow library I would imagine...

https://us.amazon.com/Developing-32-Bit-Operating-System-Cd-...