There is no API that supports this feature.
And there is currently no public plan for current or future support for WiFi RTT. So I suggest you file a feedback issue from Visual Studio and/or Windows Feedback Hub to request support.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.