[visual] Improve handling of content pasted from desktop Office applications GitOrigin-RevId: 10ce77bae008ad078afa22c8fac2cb48af3d9cb4