Birth of massive black hole binaries