If it's a non-functional asset, like a mile post, lay a short length of invisible track (hold shift when clicking to avoid it snapping to existing track) and place your milepost on this. Adjust the height of the two ends of this piece of track to whatever you need.
Obviously this will not work with signals.