I'm one of the "absolutely not" crowd. But, as a mental exercise, I'll give it a go.
I would wrap them in a couple layers of wire mesh and then trowel in a high grade hydraulic cement, to make a watertight enclosure around each unit. You'd want it to be of the same quality as the hull of a well built ferro cement boat. This should last a century.
----------------------------------------------------------------------------------------------
Railway ties are not just a toxicity concern. They are also a visual blight and on a hot day, the smell could overpower the most fragrant garden. Think of the neighborhoods where they are used. Here in Victoria, they are never seen in the upscale, tastefully done yards of Oak Bay. They are sometimes seen in South Nanaimo, an area noted for gun toting, beer swilling yokels, dressed in shorts three sizes too small, who park trucks on the front lawn and shoot beer cans. The whole place is an affront to good taste. Railway ties are a natural addition to outdoor decor.

They fit in perfectly well with abandoned vehicles, old tires turned into planters, faded plastic flamingos and broken down children's ride-on toys, that a pitbull has shredded.