Audacity has very basic MIDI file management without actually playing or making MIDI files.
I think the best you can do is get your computer MIDI interpreter to play the file and record it in Audacity by setting it to “Record What’s Playing On The Computer.” This is the same setting you would use to record YouTube or other on-line music.
Audacity does not actually have “MIDI” tracks. it has “Note Tracks”. Note tracks are based on the Allegro format which supports many more features than MIDI. When a MIDI track is imported into Audacity, note data from the MIDI file is converted into Allegro note data and displayed in the Note Track. Note Tracks may be exported in MIDI or Allegro format. Audacity can currently do a limited amount of editing on “Note Tracks”, such as cut, copy, paste.