Has an acting President ever been summoned by a court or arrested?

by Thistleknot

I'm curious to see if a President has ever had to answer to the judicial branch where a constitutional showdown of power occurs.

Advokatus

There are the trials of impeached presidents (Johnson and Clinton), in which the Senate acts as jury and the Chief Justice presides.