Jennifer Garner has opened the door of her home to her ex-husband, Ben Affleck, according to a source.

Affleck, 51, has been spending more time with his kids amid rumors that his marriage to Lopez could be heading for divorce. Since he has been visiting his ex-wife's house after he moved out from his marital home with the "Let's Get Loud" singer, the "Yes Day" actress reportedly offered Affleck a room in her home.

"Ben's got a key to come and go as he pleases, and he's been spending a ton of time at her place, coming over for dinners and hanging with the kids," a source told Closer.

RELATED: Jane Fonda's Warning To Jennifer Lopez About Ben Affleck Romance Resurfaces: 'It Feels Too Much'

Jennifer Garner and Ben Affleck
Actors Ben Affleck (L) and Jennifer Garner attend the 2014 Vanity Fair Oscar Party hosted by Graydon Carter on March 2, 2014 in West Hollywood, California.
(Photo : Pascal Le Segretain/Getty Images)

"It's great for his state of mind and the kids love having him around. That's why Jen's open to the idea of having him move back in, she's got a lot of space so he wouldn't be in her way. She knows it would bring a lot of comfort to their kids."

Enstarz could not independently verify the claim.

Affleck had already moved out of his $60 million mansion with Lopez a few weeks ago. The A-list couple has reportedly put the property up for sale. He currently lives in a rental apartment in the Brentwood neighborhood near Garner's house. Affleck and Garner share three children -- Violet, 18, Fin, 15, and Samuel, 12.

Garner and Affleck have remained amicable following their split in 2015. However, it was only three years later, in 2018, when they finalized their divorce.

Jennifer Garner and Ben Affleck
Actress Jennifer Garner and actor-director Ben Affleck arrive at the Oscars at Hollywood & Highland Center on February 24, 2013 in Hollywood, California.
(Photo : Jason Merritt/Getty Images)

"Jen is already doing so much for him, she cooks him meals, she talks him off the ledge when he's having a rough day. She's there to cheer him on and pat him on the back. Plus they're doing an awful lot together with the kids now that school is finishing up," the tipster continued about the exes' dynamics.

RELATED: Ben Affleck May Not Be As 'Invested' In Jennifer Lopez Marriage, Wants To Prioritize Kids With Jennifer Garner: Relationship Expert 

"In many ways it's like the old days, except of course there's nothing romantic between them. As far as they both tell it, what they have is more like a brother-sister relationship than exes. She's still very happy with John [Miller], this is just about her wanting to keep a closer eye on Ben, helping him out and doing what she feels is best for her kids."

Jennifer Garner
Jennifer Garner poses with her children Violet Affleck, Seraphina Rose Elizabeth Affleck and Samuel Garner Affleck at her star on the Hollywood Walk of Fame, August 20, 2018 in Hollywood, California.
(Photo : ROBYN BECK/AFP via Getty Images)

Lopez and Affleck reportedly reunited on Saturday in the West Hollywood area of Los Angeles after she returned from her solo trip to Italy. Although they were not photographed together, the "Gone Girl" actor was noticeably seen wearing his wedding band, which he ditched when she was away. She was seen leaving the same building where he has an office for his production company, Artists Equity, hours after he entered the premises. 

Jacqueline Newman, a managing partner at the matrimonial law firm Berkman Bottger Newman & Schein LLP, believes that Lopez and Affleck had already worked on their divorce and signed the paper. The expert said it felt like the celebrity couple was "dropping hints about their marriage ending" despite the lack of an official announcement.

Ben Affleck and Jennifer Lopez
Ben Affleck and Jennifer Lopez attend ELLE's Women In Hollywood Celebration at Nya Studios on December 05, 2023 in Los Angeles, California.
(Photo : Kevin Winter/Getty Images)