You can draw someone’s attention to their mistake without accusing them by simply changing your sentence. Instead of saying, “You didn’t close a window before you left”, you can say, “The window was left open all night.”