I have an .NET 5.0 WPF Application which consists of 2 threads: the UI thread and another thread that is supposed to always work in the backgro