Dragging and dropping to create a style
You can drag and drop a text selection into the Styles and Formatting window to create a new style.
Writer
Select some text and drag it to the Styles and Formatting window. If Paragraph Styles are active, the paragraph style will be added to the list. If Character Styles are active, the character style will be added to the list.
Calc
Drag a cell selection to the Styles and Formatting window to create cell styles.
Draw/Impress
Select and drag drawing objects to the Styles and Formatting window to create graphics styles.