Third-seeded Daniil Medvedev came back from two sets down to beat Emil Ruusuvuori in the third-latest finish in Grand Slam history.