You can just hide the mouse cursor, if you aren't making use of the mouse just remove the mappings for mouse buttons from input map. That's it. No other game handles it differently.
@Calinou and @cybereality are just confused because your question makes it sound like you want to actually disable the mouse altogether, i.e. if alt tabbing out of the game with the game still running the mouse wouldn't work for rest of the system either.