A man allegedly broke into a woman’s apartment in the middle of the night and then sexually assaulted her while she was taking a bath, documents said.