How to save project and reopen as you left it?

If you change something, when you close editor it should prompt you if you want to save if something is not saved, do you got any of that? It’s kind of weird it doesn’t saves you state