Peter Shirley's Ray Tracing In One Weekend implementation in Rust

I want to try adding real-time previewing with windowing(rust-sdl2,winit etc..) but no idea on how to do this