defrag for "mounted" drives

Usually, we assign a letter for a partition, e.g. C:, D:, E:, ... etc. Also drives as NTFS can be mounted in NTFS folder in Windows NT or later.

Is it possible to defrag these partitions (without drive letters)?