How can I run Minecraft in the background? [duplicate]
Open up your inventory (or the crafting window or furnace window) and then minimize the game.
F3+P allows you to minimize the game without it becoming suspended. There are other F3 debug commands, too.