RICHMOND — Gov. Ralph Northam wrote to Secretary of State Mike Pompeo on Monday to say that Virginia would welcome more refugees, pointedly declining President Trump’s offer to let states and localities veto resettlements.

“Virginia’s lights are on and our doors are open, and we welcome new Virginians to make their homes here,” Northam wrote.

Northam, a Democrat who called Trump a “narcissistic maniac” during the 2017 governor’s race, was responding to an executive order Trump issued in late September that gives states and localities unprecedented veto power over refu­gee resettlements. The order requires state and local governments to consent in writing before refugees can arrive. That would allow a state to ban refugees even if a city is willing to take them, and vice versa.

Details about how the ban would work are being sorted out over a 90-day period. Three resettlement agencies have challenged the new policy in a lawsuit filed in federal court in Maryland, the Associated Press reported last week. At least five other states have indicated that they will accept refugees, the AP reported.

Trump has pitched his order as a way to allow state and local officials to decide what is best for their communities. He has described refugees as a “Trojan horse” entering the country with the intent to attack.

Critics say Trump’s order is meant to whip up xenophobia and dismantle resettlement programs. In September, the administration slashed resettlement totals for the coming year to 18,000 people — the lowest in four decades. That’s down 84 percent from the record-high 110,000 cap set during the final year of the Obama administration.

“In recent years, as the federal government has lowered the number of refugees accepted into the United States, Virginia’s refu­gee number has dropped,” Northam wrote in his letter. “We have the capacity to accept and help more refugees than we currently have.”

Northam spoke of refu­gee programs as the embodiment of American ideals.

“The United States has long presented itself as a haven, a place of stability and economic prosperity,” Northam wrote. “We promote the ideals upon which this country was founded, of liberty and freedom. But to uphold those ideals abroad, we must allow access to them here at home. We must practice what we preach.”

He said the state only helps resettle refugees in localities that are on board with that mission.

“These are people who no longer have a home,” the governor wrote, noting that Iraqi and Afghan refugees who worked for the U.S. military and whose lives are now endangered seek to settle in Virginia because of its proximity to Washington.

“History shows us that this could happen to any of us,” he wrote. “We must all imagine ourselves in their shoes, and treat them as we would wish to be treated.”