Populating the Galaxy with low‐mass X‐ray binaries