I think I found out what I needed to actually make it possible, this method due to it's nature of working under a different time than the window does needs to work in a different thread, that draws everything in order while the main thread waits until everything was drawn once, then it goes back to normal functioning.
However I only have conceptual knowledge of threads, I have never truly worked with them before, so I'll post doubts for them here.