Proceeded with the utilization of the geometry().getRect()
method approach, which now successfully retains the positions of all windows from the allowed_widget_names
variable in the text file in the .config folder. I have been actively engaged in the process of reinstating/restoring the layout through a button press, and subsequently, implementing an automatic operation switch for the same.