Creating simple GUI to change variables in script

Thanks a lot, I am looking into controlp5. Also, I am looking for behavior as shown in image - there are 2 windows, first small window for controls and the other for design preview. Are you aware of any library to achieve such behavior. I think its possible from controlp5 but I am still investigating how to achieve that.